package com.cxhc.app.api.hcdoc;


import com.cxhc.common.core.controller.BaseController;
import com.cxhc.common.core.domain.AjaxResult;
import com.cxhc.common.utils.spring.SpringUtils;
import com.cxhc.quartz.task.WechatTask;
import com.cxhc.system.service.hcdoc.HcDocUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 用户信息Controller
 *
 * @author Dhq
 * @date 2024-08-14
 */
@RestController
@RequestMapping("/api/test")
public class TestApi extends BaseController {

    @Autowired
    private HcDocUserService hcDocUserService;

    /**
     * 获取用户信息详细信息
     */
    @RequestMapping(value = "/test")
    public AjaxResult getInfoByAccount() {
        WechatTask project = SpringUtils.getBean("wechat");
        project.updateToken();
        return success();
    }


}
